#!/usr/bin/python
# -*- coding: utf-8 -*-
# encoding=utf-8
# Filename: watch-yongfu-project.py

index = 0
fruit = "b"
while index < len(fruit):
    letter = fruit[index]
    print letter
    index += 1


prefixes = 'JKLMNOPQ'
suffix = 'ack'
for letter in prefixes:
    if letter == 'O' or letter == 'Q':
        letter = letter + "U"
    print letter + suffix


def is_reverse(word1, word2):
    if len(word1) != len(word2):
        return False

    i=0
    j = len(word2) - 1

    while j >= 0:
        print i, j
        if word1[i] != word2[j]:
            return False

        i = i+1
        j = j-1

    return True

print is_reverse('stop', 'pots')